[NTG-context] Re: what about "textdisplay"?

2024-04-02 Thread Hans Hagen via ntg-context
around them so not meant for e.g. section heads or whatever text; it's for images, framed stuff, maybe bTABLE etc Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH

[NTG-context] Re: MetaPost lines in tables?

2024-02-22 Thread Henning Hraban Ramm
r][first][style=bold] \setupTABLE[r][each][ topoffset=1em,bottomoffset=0.5em, background=sketchylines, % would be nice if the background wouldn’t start at each column ] \setupTABLE[c][each][frame=off] \bTABLE[] \bTR \bTD{Stadt}\eTD \bTD{Land}\eTD \bTD{Fluss}\eTD \eTR \dorecurse

[NTG-context] Re: MetaPost lines in tables?

2024-02-21 Thread Wolfgang Schuster
(OverlayBox is the size of the cell). begin example \startuseMPgraphic{dottedborder}    draw OverlayBox withpen pencircle scaled 2 dashed withdots withcolor "red"; \stopuseMPgraphic \defineoverlay[dottedborder][\useMPgraphic{dottedborder}] \starttext \bTABLE[frame=off,

[NTG-context] Re: MetaPost lines in tables?

2024-02-21 Thread Henning Hraban Ramm
example \startuseMPgraphic{dottedborder}   draw OverlayBox withpen pencircle scaled 2 dashed withdots withcolor "red"; \stopuseMPgraphic \defineoverlay[dottedborder][\useMPgraphic{dottedborder}] \starttext \bTABLE[frame=off,background=dottedborder] Thank you! Since I needed only horizo

[NTG-context] Re: MetaPost lines in tables?

2024-02-19 Thread Wolfgang Schuster
OverlayBox withpen pencircle scaled 2 dashed withdots withcolor "red"; \stopuseMPgraphic \defineoverlay[dottedborder][\useMPgraphic{dottedborder}] \starttext \bTABLE[frame=off,background=dottedborder] \bTR \bTD Hello Table! \eTD \eTR \eTABLE \stoptext end example

[NTG-context] Re: Text in Margin

2024-02-19 Thread Wolfgang Schuster
dth] \stopplacefigure \samplefile{lorem} \startplacetable \bTABLE \bTR \bTD one \eTD \bTD two \eTD \bTD three \eTD \eTR \eTABLE \stopplacetable \samplefile{lorem} \startplacetable \bTABLE[textwidth=\dimexpr\textwidth+\rightmarginwidth+\rightmargindistance\relax,opt

[NTG-context] Re: How to stop

2024-01-28 Thread Bruce Horrocks
TABLE[r][2,3,4,5,6,8,9,11,12,14][bottomframe=off] > \setupTABLE[r][1][bottomframe=on] > \bTABLE[split=yes] > \bTR\bTD {\it Lesson}\eTD\bTD {\it > Time} \\eTD\bTD {\it Date} \eTD\bTD {\it Page} \eTD\eTR >

[NTG-context] Re: How to stop

2024-01-27 Thread Hraban Ramm
=on]                             \bTABLE[split=yes]                                 \bTR\bTD {\it Lesson}  \eTD\bTD {\it Time} \\eTD\bTD {\it Date} \eTD\bTD {\it Page} \eTD\eTR                             \eTABLE What I've been finding is that previous settings on TABLES appearing earlier in the document

[NTG-context] How to stop

2024-01-27 Thread Joel via ntg-context
=.1\textwidth]                             \setupTABLE[c][1,2,3,4,5][align=raggedleft, frame=off]                              %\setupTABLE[r][2,3,4,5,6,8,9,11,12,14][bottomframe=off]                             \setupTABLE[r][1][bottomframe=on]                             \bTABLE[split=yes

[NTG-context] Re: Reduce space between lines in Natural Tables

2023-09-12 Thread Jeroen
It does not seem to have an effect to the table. The distance between the rows remains the same Thanks, Jeroen Op ma 11 sep 2023 om 09:08 schreef : > \bTABLE[spaceinbetween=0cm] > > ... > > \eTABLE > > > > > > > > *Von:* Jeroen > *Gesendet:* Sonntag

[NTG-context] Re: Reduce space between lines in Natural Tables

2023-09-11 Thread Wolfgang Schuster
] \starttext \bTABLE    \bTR   \bTD Cell 1:1 \eTD   \bTD Cell 1:2 \eTD   \bTD Cell 1:3 \eTD    \eTR    \bTR   \bTD Cell 2:1 \eTD   \bTD Cell 2:2 \eTD   \bTD Cell 2:3 \eTD    \eTR    \bTR   \bTD Cell 3:1 \eTD   \bTD Cell 3:2 \eTD   \bTD Cell 3:3 \eTD    \eTR \eTABLE

[NTG-context] Re: Reduce space between lines in Natural Tables

2023-09-11 Thread denis.maier
\bTABLE[spaceinbetween=0cm] ... \eTABLE Von: Jeroen Gesendet: Sonntag, 10. September 2023 22:05 An: mailing list for ConTeXt users Betreff: [NTG-context] Reduce space between lines in Natural Tables Is there an easy way to reduce the line space between rows in a natural table so the table

[NTG-context] Re: Table head/body via lua

2023-08-18 Thread Wolfgang Schuster
the table together piece by piece with the collecting mechanism which collect parts of the table until you flush the whole collection at the end with the \stopcollecting command. \starttext \bTABLE \startcollecting \startcollect \bTABLEbody \stopcollect \startcollect \bTR \bTD Cell 1\eTD \bTD

[NTG-context] Re: Table head/body via lua

2023-08-18 Thread Wolfgang Schuster
commands, like \bTABLEhead, \eTABLEhead, bTABLEbody or \eTABLEbody: it seems impossible to incapsulate them into lua functions. For example, the following is not compiled: \starttext \bTABLE \ctxlua{context.bTABLEbody()} \bTR \bTD Cell 1\eTD \bTD Cell 2\eTD \eTR \ctxlua{context.eTABLEbody()} \eTABLE

[NTG-context] Table head/body via lua

2023-08-18 Thread Alexey Kryukov
or \eTABLEbody: it seems impossible to incapsulate them into lua functions. For example, the following is not compiled: \starttext \bTABLE \ctxlua{context.bTABLEbody()} \bTR \bTD Cell 1\eTD \bTD Cell 2\eTD \eTR \ctxlua{context.eTABLEbody()} \eTABLE \stoptext Can anybody suggest a workaround

[NTG-context] Re: An error which is not in .log file

2023-08-15 Thread Xavier B.
). 26 27 \startplacefigure[reference=fig:oli-aigua-diposit, location=force, title={Dipòsit omplit amb aigua i oli}] 28 \bTABLE[frame=off,align={middle,lohi},width=fit] 29 \bTR 30 \bTD 31 \starttikzpicture[scale=0.75] 32 % recipient 33 \draw (0,0) -- (0,10) -- (2,1

[NTG-context] itemize

2023-08-15 Thread Hans Hagen via ntg-context
. So, when Mikael and I were looking at one of his documents that mixes a lot of math into itemized situations, a different variant was made (ok, there was another reason but that's a bit technical). At that time, I had already adapted itemize to work a bit better with bTABLE and starttabulate

[NTG-context] itemize

2023-08-15 Thread Hans Hagen via ntg-context
. So, when Mikael and I were looking at one of his documents that mixes a lot of math into itemized situations, a different variant was made (ok, there was another reason but that's a bit technical). At that time, I had already adapted itemize to work a bit better with bTABLE and starttabulate

[NTG-context] Re: Very strange error:

2023-08-14 Thread Xavier B.
h] {\x }; } \draw [color=red!50, line width=2pt] (0,0) -- (2,0); \stoptikzpicture \par \item \starttikzpicture \draw (0,0) -- (5,0); \foreach \x in {0, 1, 2,..., 5} { \draw (\x , -0.2) -- (\x , 0.2); \draw (\x ,-0.2) node[anchor=north] {\x }; } \draw [color=green!50, line width=2pt] (0,0) -- (3,0); \sto

[NTG-context] Very strange error:

2023-08-14 Thread Xavier B.
vegeu la figura~\\in [figura:diagrama-punts-5x10]) representeu la informació donada en cada cas. \\par \\placefigure [force] [figura:diagrama-punts-5x10] {Diagrama de punts $5 \\times 10$} { \\bTABLE [frame=off,align={middle,lohi},width=fit, offset=2mm] \\bTR \\bTD \\starttikzpicture \\foreach \\x i

Re: [NTG-context] \setupTABLE: framecolor

2023-03-25 Thread Bruce Horrocks via ntg-context
BLE[row] [first] [topframe=on,bottomframe=on,style=bold] \setupTABLE[row][2][topframe=on] \setupTABLE[row][2][topframe=off,rightframe=on,leftframe=on,framecolor=lightgray] \setupTABLE[row][3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22][frame=on, framecolor=lightgray] \setupTABLE[row] [last] [to

Re: [NTG-context] rotated headers in natural tables

2023-03-17 Thread Wolfgang Schuster via ntg-context
[1]{\RtH}{\rotate{#1}} \starttext \setupTABLE[offset=3pt] \setupTABLE[header][background=color,backgroundcolor=yellow,align=bottom] \bTABLE \bTABLEhead \bTR \bTH\RtH{animal}\eTH \bTH\RtH{size}\eTH \bTH\RtH{weight}\eTH \bTH\RtH{average speed}\eTH \eTR You can change the vertical alignment

Re: [NTG-context] Absolute positioning of \startcombination... \stopcombination

2023-03-17 Thread Keith McKay via ntg-context
]}{} \rotate[rotation=90]{\externalfigure[dummy]}{} {\externalfigure[dummy][]}{} \stopcombination} } \flushlayer[test3] \page %%% Wolfgang %%% \centerbox {\bTABLE[frame=off,offset=7.5mm,align={middle,lohi}] \bTR \bTD \externalfigure[dummy] \eTD \bTD \rotate[rotation=90]{\externalfigure[dummy

Re: [NTG-context] Absolute positioning of \startcombination... \stopcombination

2023-03-16 Thread Keith McKay via ntg-context
gt; > > > > > \useMPlibrary [dum] > > > > > > \starttext > > > > > > \definelayer[test3] > > > > > > \setlayer[test3][x=2cm,y=15cm] > > > > > > {\startcombination[nx=3,ny=1,distance=15mm,after=,location

Re: [NTG-context] Absolute positioning of \startcombination... \stopcombination

2023-03-16 Thread Alan Braslau via ntg-context
text > > > > \definelayer[test3] > > > > \setlayer[test3][x=2cm,y=15cm] > > > > {\startcombination[nx=3,ny=1,distance=15mm,after=,location=middle] > > > > {\externalfigure[dummy]}{} > > > > \rotate[rotation=90]{\externalfigure[dumm

Re: [NTG-context] Absolute positioning of \startcombination... \stopcombination

2023-03-16 Thread Wolfgang Schuster via ntg-context
]}{} {\externalfigure[dummy][]}{} \stopcombination} \flushlayer[test3] \stoptext \useMPlibrary [dum] \showframe [text] [text] \setuplayout [tight] \starttext \centerbox    {\bTABLE[frame=off,offset=7.5mm,align={middle,lohi}]     \bTR     \bTD     \externalfigure[dummy

Re: [NTG-context] rotated headers in natural tables

2023-03-15 Thread Bruce Horrocks via ntg-context
find an option to do that. > Tried \dontleavehmode or \hfill in my \RtH macro to no avail. > Is it possible? > > > \define[1]{\RtH}{\rotate{#1}} > > \starttext > > \setupTABLE[offset=3pt] > \setupTABLE[header][background=color,backgroundcolor=yellow,align=bottom] >

Re: [NTG-context] rotated headers in natural tables

2023-03-15 Thread fv leung via ntg-context
\dontleavehmode or \hfill in my \RtH macro to no avail. > Is it possible? > > > \define[1]{\RtH}{\rotate{#1}} > > \starttext > > \setupTABLE[offset=3pt] > \setupTABLE[header][background=color,backgroundcolor=yellow,align=bottom] > \bTABLE > \bTABLEhead > \bTR \bTH

[NTG-context] rotated headers in natural tables

2023-03-15 Thread Henning Hraban Ramm via ntg-context
] \setupTABLE[header][background=color,backgroundcolor=yellow,align=bottom] \bTABLE \bTABLEhead \bTR \bTH\RtH{animal}\eTH \bTH\RtH{size}\eTH \bTH\RtH{weight}\eTH \bTH\RtH{average speed}\eTH \eTR \eTABLEhead \bTABLEbody \bTR \bTD sparrow \eTD \bTD small \eTD \bTD light \eTD \bTD high \eTD \eTR \bTR \bTD dog

Re: [NTG-context] Table

2023-03-13 Thread Ursula Hermann via ntg-context
rttext \setupTABLE[c][align=middle] \setupTABLE[c][odd][width=2em] \setupTABLE[c][even][width=1mm] \setupTABLE[r][2][height=1mm] \setupTABLE[c][1][leftframe=off] \setupTABLE[c][5][rightframe=off] \bTABLE \bTR \bTD 1 \eTD \bTD \eTD \bTD 2 \eTD \bTD \eTD \bTD 3 \eTD \eTR \bTR \bTD \eTD \bTD \eT

Re: [NTG-context] Table

2023-03-13 Thread Mikael Sundqvist via ntg-context
Uschi > There are probably better ways, but this seems to give something like what you look for: \starttext \setupTABLE[c][align=middle] \setupTABLE[c][odd][width=2em] \setupTABLE[c][even][width=1mm] \setupTABLE[r][2][height=1mm] \setupTABLE[c][1][leftframe=off] \setupTABLE[c][5][rightframe=off] \bTA

Re: [NTG-context] Typeset multiple pictures not in a strict matrix (\startfloatcombination)

2023-03-08 Thread Hans Hagen via ntg-context
\stoptext However, this does not work (the pictures are all in one row). Do you have some advice? you can cheat: \startplacefigure[title=Test] \bTABLE[frame=off] \bTR \bTD[nx=2,align=middle,offset=overlay] \dontleavehmode\externalfigure[dummy-1][width=4cm,height=1cm

Re: [NTG-context] Disappearing footnote in figure / tabulate

2023-03-02 Thread Denis Maier via ntg-context
\startxmlsetups xml:table:tr:td \NC \xmlflush{#1} \stopxmlsetups \starttext \xmlprocessbuffer{test}{test}{} \startplacetable \starttabulate[|p|p|] \NC a\footnote{3}\NC b\NC\NR \stoptabulate \stopplacetable \startplacetable \bTABLE \bTR \bTD One\footnote{4} \eTD \bTD two \eTD

[NTG-context] Disappearing footnote in figure / tabulate

2023-03-02 Thread Denis Maier via ntg-context
\NC\NR \stoptabulate \stopplacetable \startplacetable \bTABLE \bTR \bTD One\footnote{4} \eTD \bTD two \eTD \eTR \bTR \bTD One \eTD \bTD two \eTD \eTR \eTABLE \stopplacetable % \startpostponingnotes \startplacetable \startxtable \startxrow \startxcell a\footnote{5}\stopxcell \startxcell b\footnote

[NTG-context] [m-database] How to properly add module arguments?

2023-02-25 Thread Paul Mazaitis via ntg-context
rtsTable] [separator=comma,left=\bTD,right=\eTD,first=\bTR,last=\eTR,before={ \bTABLE[split=repeat,option=stretch] \bTABLEhead \bTR \bTH Ref. No. \eTH \bTH Part No. \eTH \bTH Description \eTH \bTH Remarks \eTH \eTR \eTABLEhead \bTABLEbody }, after={ \eTABLEbody \eTABLE }] \s

Re: [NTG-context] Chapter cover page

2023-02-23 Thread Alex Leray via ntg-context
\layoutcolumnwidth is coming from so I just hard-coded a width for now. Lastly there are neater ways (using \setuptable) to define the table but it's just an example... \define[2]\MyChapter{ \bTABLE[frame=off] \bTR \bTD[width=4cm] \structureuservariable{author} \eTD

Re: [NTG-context] Chapter cover page

2023-02-23 Thread Bruce Horrocks via ntg-context
just hard-coded a width for now. Lastly there are neater ways (using \setuptable) to define the table but it's just an example... \define[2]\MyChapter{ \bTABLE[frame=off] \bTR \bTD[width=4cm] \structureuservariable{author} \eTD \bTD \structureuservariable{bio} \eTD

Re: [NTG-context] \xmlmap errors when returning key-value

2023-02-22 Thread Denis Maier via ntg-context
xml:table:colgroup:colvar > \setupTABLE[c][\xmlmatch > {#1}][align=\xmlvalue{colgroupalignvar}{\xmlatt{#1}{style}}{lefttoright}] > \stopxmlsetups > > \startxmlsetups xml:table:colgroup:col > \setupTABLE[c][\xmlmatch > {#1}][\xmlvalue{colgroupalign}{\xmlatt{#1}{style}}{align=lefttor

[NTG-context] \xmlmap errors when returning key-value

2023-02-20 Thread Denis Maier via ntg-context
ment \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:table-wrap \startplacetable \xmlflush{#1} \stopplacetable \stopxmlsetups \startxmlsetups xml:table \xmlfilter {#1} {/colgroup/command(xml:table:colgroup)} \bTABLE \xmlfilter{#1}{/thead/command(xml:table:thea

[NTG-context] Unexpected results with \xmlpos

2023-02-16 Thread Denis Maier via ntg-context
%\xmlvalue{colstyle}{\xmlatt{#1}{style}}{} \xmlpos {#1} \stopxmlsetups \startxmlsetups xml:table \xmlfilter {#1} {/colgroup/command(xml:table:colgroup)} \bTABLE \xmlfilter{#1}{/thead/command(xml:table:thead)} \xmlfilter{#1}{/tbody/command

Re: [NTG-context] New c-o-w: The XMas gift for ConTeXt users

2022-12-27 Thread Willi Egger via ntg-context
intuitive, that always the brackets are placed. Specially while editing \bTABLE … \eTABLE and the commands belonging to this table-type it could be good to have the right arrow key to have the command placed with brackets and with the down-arrow-key the command being placed without brackets

Re: [NTG-context] Writing Tabular with \Vert

2022-12-21 Thread Hans Hagen via ntg-context
On 12/21/2022 12:39 PM, Ursula Hermann via ntg-context wrote: Dear List, In this tabular I wanted to set \Vert. But when I compile it, \bTABLE \bTR \bTD \Vert r1c1\Vert \eTD \bTD \bf r1c2 \eTD \bTD \bf r1c3 \eTD \bTD \bf r1c4 \eTD \eTR \bTR \bTD r2c1 \eTD \bTD r2c2 \eTD \bTD[nr=2

Re: [NTG-context] split TABLE cells

2022-05-19 Thread Steffen Wolfrum via ntg-context
> Am 19.05.2022 um 08:14 schrieb Hans Hagen via ntg-context > : > > On 5/18/2022 8:07 PM, Steffen Wolfrum via ntg-context wrote: >> Hi, >> I just found an old mail from 30 May 2008: >> How do I split not only TABLE but cells? It was not possible then. >> \s

Re: [NTG-context] split TABLE cells

2022-05-19 Thread Hans Hagen via ntg-context
On 5/18/2022 8:07 PM, Steffen Wolfrum via ntg-context wrote: Hi, I just found an old mail from 30 May 2008: How do I split not only TABLE but cells? It was not possible then. \starttext \bTABLE[split=yes,option=stretch] \bTR \bTD \input tufte \input knuth Hello world ... \eTD \bTD \input

[NTG-context] split TABLE cells

2022-05-18 Thread Steffen Wolfrum via ntg-context
Hi, I just found an old mail from 30 May 2008: How do I split not only TABLE but cells? It was not possible then. \starttext \bTABLE[split=yes,option=stretch] \bTR \bTD \input tufte \input knuth Hello world ... \eTD \bTD \input tufte \eTD \bTD \input knuth \eTD \eTR \bTR \bTD Test \eTD \bTD

Re: [NTG-context] Table breaks incorrectly between pages

2022-05-14 Thread śrīrāma via ntg-context
right] \stopsetups \startsetups headertext \start \bTABLE[setups=headertable,option=stretch] \bTR \bTD „ДОЛИНА” Д.О.О. Београд\\ ПЈ за прераду меса\\ ПИБ: СР 100029284\\ МБ: 06434517\\ Текући рачун: 205-157956-65\\ Email: dolin...@gmail.com \eTD \bTD Булевар Краља Александра 334, 11000 Београд\\ 011\h

[NTG-context] Table breaks incorrectly between pages

2022-05-14 Thread Stefan Nedeljkovic via ntg-context
\startsetups headertext \start \bTABLE[setups=headertable,option=stretch] \bTR \bTD „ДОЛИНА” Д.О.О. Београд\\ ПЈ за прераду меса\\ ПИБ: СР 100029284\\ МБ: 06434517\\ Текући рачун: 205-157956-65\\ Email: dolin...@gmail.com \eTD \bTD Булевар Краља Александра 334, 11000 Београд\\ 011\hspace[tnumber]3806

[NTG-context] XML: calculations on attribute values before output

2022-05-04 Thread Duncan Hothersall via ntg-context
in advance. Duncan -- \startbuffer[demo] 1 2 3 \stopbuffer \startxmlsetups xml:demo:base \xmlsetsetup{#1}{*}{xml:demo:*} \stopxmlsetups \xmlregisterdocumentsetup{demo}{xml:demo:base} \startxmlsetups xml:demo:informaltable \bTABLE \xmlflush{#1

Re: [NTG-context] xmlpos values doubled

2022-04-20 Thread Ben Moon via ntg-context
> \startxmlsetups xml:table-wrap > \startplacetable > % \contextversion \par > \xmlflush{#1} > \stopplacetable > \stopxmlsetups > > \startxmlsetups xml:table > \bTABLE > \xmlflush{#1} > \eTABLE > \stopxml

Re: [NTG-context] right item marks for associative questions?

2022-04-12 Thread Wolfgang Schuster via ntg-context
ially with long answers.. That makes a four columns table more cumbersome, so I believe. You can use different alignment settings to move the bullet points to the right side of your lists. \starttext \bTABLE[frame=off,width=.4\textwidth,columndistance=.2\textwidth,align={normal,lohi}]  

Re: [NTG-context] right item marks for associative questions?

2022-04-11 Thread śrīrāma via ntg-context
e alternative, align, closesymbol, closecommand to get exactly what you want; the example above will give a somewhat symmetric layout] More generally, if the text can multi-line, then I think TABLE (with proper alignment options) might be better-suited: %%% start example-2 \define\startItemize{

Re: [NTG-context] processdatabasefile styling of table cells

2022-04-06 Thread Bruce Horrocks via ntg-context
eader=repeat, option=stretch, > loffset=.5ex,roffset=.5ex] > > \setupTABLE [row] [odd] > [background=color,backgroundcolor=hs-hellblau,] > > \setupTABLE [start] [spaceinbetween=25pt] > > \defineseparatedlist > [preislistecsv] > [separator={;}, % tab >befor

[NTG-context] processdatabasefile styling of table cells

2022-04-06 Thread juh+ntg-context--- via ntg-context
,] \setupTABLE [start] [spaceinbetween=25pt] \defineseparatedlist [preislistecsv] [separator={;}, % tab before=\bTABLE,after=\eTABLE, first=\bTR,last=\eTR, left=\bTD,right=\eTD] Is it possible to align decimal numbers in cells to the right? The data differs a lot. Sometimes only the last

[NTG-context] xmlpos values doubled

2022-03-28 Thread Ben Moon via ntg-context
:*} \stopxmlsetups \xmlregistersetup{xml:tabletestsetups} \startxmlsetups xml:table-wrap \startplacetable % \contextversion \par \xmlflush{#1} \stopplacetable \stopxmlsetups \startxmlsetups xml:table \bTABLE \xmlflush{#1} \eTABLE \stopxmlsetups \startxmlsetups

Re: [NTG-context] Makeup on same page as main content

2022-03-05 Thread śrīrāma via ntg-context
ult}] \setvariables [assignments] [set={\setups[assignments:set]}] \startsetups assignments:set \writestatus{variables}{assignments:set is being called..} \startalignment[middle] \bTABLE[frame=off] \setupTABLE[c][1][align=flushleft,style=bold,distance=2cm] \setupTABLE[c][2][al

Re: [NTG-context] How to create cell data that spans four rows in a table?

2022-01-09 Thread Wolfgang Schuster via ntg-context
Willi Egger via ntg-context schrieb am 08.01.2022 um 23:57: I would suggest not to use \starttable at all. To me the most suitable table environment for such a table is \bTABLE \eTABLE. It gives you all kind of control over layout, dimensions, frames on and off etc. I agree natural tables

Re: [NTG-context] How to create cell data that spans four rows in a table?

2022-01-08 Thread Joel via ntg-context
is \bTABLE \eTABLE. It gives you all kind of control over layout, dimensions, frames on and off etc. \setupTABLE[c][1][leftframe=off,width=40mm] \setupTABLE[c][2][rightframe=off, width=60mm] \setupTABLE[c][each][align={lohi,center}] \bTABLE     \bTR         \bTD {\bf Eons}\eTD \bTD {\bf Eras

Re: [NTG-context] How to create cell data that spans four rows in a table?

2022-01-08 Thread Willi Egger via ntg-context
I would suggest not to use \starttable at all. To me the most suitable table environment for such a table is \bTABLE \eTABLE. It gives you all kind of control over layout, dimensions, frames on and off etc. \setupTABLE[c][1][leftframe=off,width=40mm] \setupTABLE[c][2][rightframe=off, width=60mm

Re: [NTG-context] Align table (framed) top

2022-01-04 Thread Mikael Sundqvist via ntg-context
then. If it is > > still possible to solve without the surrounding framed I'm interested > > to hear how. > > You have to put the table in a box to change the vertical position. > > \starttext > > a\tbox{\bTABLE \bTR \bTD xxx\

Re: [NTG-context] Align table (framed) top

2022-01-04 Thread Wolfgang Schuster via ntg-context
. \starttext a\tbox{\bTABLE \bTR \bTD xxx\par yyy \eTD \eTR \eTABLE}b \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http

[NTG-context] Align table (framed) top

2022-01-04 Thread Mikael Sundqvist via ntg-context
\starttext Foofoo Bar\bTABLE[width=2cm,location=top] \bTR \bTD This is a long sentence \eTD \eTR \eTABLE The last foo \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki!

Re: [NTG-context] Have a cell span multiple columns with tabulate

2021-11-27 Thread Jean-Philippe Rey via ntg-context
t; > Any ideas ? > > I know that natural tables offer more in this regard, but those seem not to > be so well suited for parallel texts. > > I switched to natural tables a long time ago and that's how I would do it: > > \starttext > \bTABLE[width=8cm, frame=of

Re: [NTG-context] Have a cell span multiple columns with tabulate

2021-11-27 Thread Denis Maier via ntg-context
offer more in this regard, but those seem not to be so well suited for parallel texts. I switched to natural tables a long time ago and that's how I would do it: \starttext \bTABLE[width=8cm, frame=off] \setupTABLE[c][1][roffset=0.5em] \setupTABLE[c][2][loffset=0.5em] \bTR \bTD[nc=2,

Re: [NTG-context] Have a cell span multiple columns with tabulate

2021-11-27 Thread Jean-Philippe Rey via ntg-context
the cells at the top aren’t merged. > > Any ideas ? > > I know that natural tables offer more in this regard, but those seem not to > be so well suited for parallel texts. I switched to natural tables a long time ago and that's how I would do it: \starttext \bTABLE[width=8cm

Re: [NTG-context] Neste itemize in table (or vice-versa?)

2021-11-20 Thread Wolfgang Schuster via ntg-context
\startsetups [alexandre:1]     \setupTABLE [start] [frame=off]     \setupTABLE [c] [1] [width=.3\textwidth]     \setupTABLE [c] [2] [width=.6\textwidth] \stopsetups \startitemize [a] [right=),stopper=] \bTABLE[setups=alexandre:1] \bTR \bTD \dontleavehmode\itemtag\quad Something \eTD \bTD Something

[NTG-context] Neste itemize in table (or vice-versa?)

2021-11-20 Thread Alexandre Christe via ntg-context
Dear all, I'm trying something out in LMTX, which is to combine itemize with a table. Application could be to put a question and the answer in the next column. A minimal example would be: \starttext \startitemize [a] [right=),stopper=] \bTABLE[frame=off] \setupTABLE[column][1] [width

Re: [NTG-context] Multiline cell in spreadsheettable

2021-11-18 Thread Hans Hagen via ntg-context
natural tables I found this code on the wiki % mode=mkiv \setuppapersize[A5] \bTABLE \setupTABLE[c][each][alignmentcharacter={number->.},aligncharacter=yes,align=middle] \bTABLEhead \bTR \bTH Same-Width Prefix \eTH \bTH Varying-Width Prefix \eTH \bTH Same-Width Suffix \eTH \bTH Varying-Width Suf

Re: [NTG-context] Multiline cell in spreadsheettable

2021-11-18 Thread juh via ntg-context
ables I found this code on the wiki % mode=mkiv \setuppapersize[A5] \bTABLE \setupTABLE[c][each][alignmentcharacter={number->.},aligncharacter=yes,align=middle] \bTABLEhead \bTR \bTH Same-Width Prefix \eTH \bTH Varying-Width Prefix \eTH \bTH Same-Width Suffix \eTH \bTH Varying-Width Suffix \eTH \eTR \

Re: [NTG-context] spreadsheet product of two cells in current row

2021-11-12 Thread Wolfgang Schuster via ntg-context
e I have no problem to access values in the current row. \usemodule[spreadsheet] \starttext \bTABLE     \bTR     \bTD Amount \eTD     \bTD Single \eTD     \bTD Sum \eTD     \eTR     \bTR     \bTD \getspr{2} \eTD     \bTD \getspr{5} \eTD     \bTD \getspr{A[2] * B[2]} \

[NTG-context] How to place text before a table inside a column environment

2021-07-22 Thread Michael Guravage
][2][width=3cm, align=middle] \setupTABLE[c][each][frame=off] \stopsetups \switchtobodyfont[10pt] \starttext \doifmode{title}{\title{Rooster}} \startcolumns[n=2] \bTABLE[split=yes, setups=tablesettings] \dorecurse{75}{\bTR \bTD 25 \eTD \bTD aug, wo \eTD \bTD Lecture \eTD \eTR

Re: [NTG-context] (no subject)

2021-07-18 Thread Wolfgang Schuster
T. Kurt Bond schrieb am 17.07.2021 um 08:38: I have the following file: \setupfloat[table][default=nonumber] \starttext \section[title={Tables without force}] Here is a table without a caption, unforced. \startplacetable[location=none]   \bTABLE   \bTR\bTD r1c1

Re: [NTG-context] (no subject)

2021-07-18 Thread Pablo Rodriguez
On 7/17/21 8:38 AM, T. Kurt Bond wrote: > I have the following file: > > \setupfloat[table][default=nonumber] > > \starttext > \startplacetable[title={Table With A Caption},location=force] > \bTABLE > \bTR\bTD r2c1 \eTD\bTD r2c2\eTD\eTR > \e

[NTG-context] splitting tables from csv with first row as header

2021-06-23 Thread Jan U. Hasecke
Hi all, I have this sample: \usemodule[database] \setuppapersize [A6] \setupTABLE [split=yes, header=repeat] \defineseparatedlist [test] [separator={;}, % tab before=\bTABLE,after=\eTABLE, first=\bTR,last=\eTR, left=\bTD,right=\eTD] \starttext \processdatabasefile[test

[NTG-context] Natural tables framecolor=white regression

2021-06-20 Thread Christoph Reller
Hi, Consider the following MWE: \starttext \setupTABLE[ rulethickness=5pt, framecolor=white, %red, background=color, backgroundcolor=gray, frame=off] \setupTABLE[1][2][foregroundcolor=white, topframe=on] \setupTABLE[r][2][topframe=on] \bTABLE[setups=table:color] \bTR \bTD One

Re: [NTG-context] Natural tables | 2 tables in a page seem to interfere with each other?

2021-06-16 Thread Ramkumar KB
r][1][height=0cm,topframe=off] \setupTABLE[c][1][width=5cm] > \setupTABLE[c][4,7][width=3cm] \bTABLE ... \eTABLE > \setupTABLE[r][each][height=1.3cm,topframe=on] > \setupTABLE[c][each][width=1.7cm] > \setupTABLE[c][1,4,7][width=1.7cm] %This is to reset from the previous Table > \setupT

Re: [NTG-context] Natural tables | 2 tables in a page seem to interfere with each other?

2021-06-16 Thread Wolfgang Schuster
his indeed is the desired behavior? Thank you very much. \setupTABLE[r][each][height=0.5cm,frame=on] \setupTABLE[c][each][width=0.6cm] \setupTABLE[r][1][height=0cm,topframe=off] \setupTABLE[c][1][width=5cm] \setupTABLE[c][4,7][width=3cm] \bTABLE ... \eTABLE \setupTABLE[r][each][height=1.3c

[NTG-context] Natural tables | 2 tables in a page seem to interfere with each other?

2021-06-16 Thread Ramkumar KB
very much. \setupTABLE[r][each][height=0.5cm,frame=on] \setupTABLE[c][each][width=0.6cm] \setupTABLE[r][1][height=0cm,topframe=off] \setupTABLE[c][1][width=5cm] \setupTABLE[c][4,7][width=3cm] \bTABLE ... \eTABLE \setupTABLE[r][each][height=1.3cm,topframe=on] \setupTABLE[c][each][width=1.7cm] \setupTABL

Re: [NTG-context] PDF forms not creating proper children

2021-06-07 Thread Leonard Janis Robert König
natures into one, however Okular doesn't. I could, however, isolate the original issue I posted on the ML: Actually forms still work, but they don't, if embedded into TABLEs. Here's a MWE: \setupinteraction[state=start] \definefield[lineField][line][][][] \starttext \bTABLE[] \bTR

[NTG-context] new upload

2021-06-04 Thread Hans Hagen
Hi, I uploaded a new version of lmtx: a next step in this matrix and such graphic part ... (also bTABLE done). The matrix bit has a high level MP interface, also because it's a nice example of implementing one (not much code needed actually). Support in bTABLE .. eTABLE is kind

Re: [NTG-context] Table disappears in floatcombination

2021-03-28 Thread Christoph Reller
> \setupcaptions[ >> > >number=no, %<- comment and table appears >> > >align=flushright] >> > > \starttext >> > > \startplacecombination[title=Combination] >> > >\startfloatcombination >> >

Re: [NTG-context] Questions for eTABLE

2021-02-23 Thread Alain Delmotte
Singular} \setupTABLE[c][1,2,3][width=5cm] \placetable[none][]{}{ \bTABLE[setups=tablesettings] \bTR \bTH Pronoun \eTH \bTH Particle \eTH \bTH Noun \eTH \eTR \bTR \bTH Mimi/Wewe/Yeye \eTH \bTH ni \eTH \bTH Mtanzania/Mmarekani /Mke

Re: [NTG-context] Questions for eTABLE

2021-02-22 Thread Wolfgang Schuster
Singular} \setupTABLE[c][1,2,3][width=5cm] \placetable[none][]{}{ \bTABLE[setups=tablesettings] \bTR \bTH Pronoun \eTH \bTH Particle \eTH \bTH Noun \eTH \eTR \bTR \bTH Mimi/Wewe/Yeye \eTH \bTH ni \eTH \bTH Mtanzania/Mmarekani /Mkenya \eTH \eTR \bTR \bTH {\sl I/You/He or She} \eTH \bTH {\sl am

[NTG-context] Questions for eTABLE

2021-02-22 Thread Alain Delmotte
{\bf Singular} \setupTABLE[c][1,2,3][width=5cm] \placetable[none][]{}{ \bTABLE[setups=tablesettings] \bTR \bTH Pronoun \eTH \bTH Particle \eTH \bTH Noun \eTH \eTR \bTR \bTH Mimi/Wewe/Yeye \eTH \bTH ni \eTH \bTH Mtanzania/Mmarekani /Mkenya \eTH \eTR \bTR \bTH {\sl I/

Re: [NTG-context] How to improve visually a table

2021-02-16 Thread Wolfgang Schuster
][corner=07] \setupTABLE[last][last][corner=06] \setupTABLE[column][last][style={\setcharacterspacing[frenchpunctuation]}] \stopsetups \bTABLE[setups=tablesettings] %\bTABLEhead \bTR \bTH espéranto \eTH \bTH exemple \eTH \bTH équivalent en français \eTH \eTR %\eTABLEhead %\bTABLEbody

[NTG-context] squeezed

2021-01-08 Thread Hans Hagen
Hi, Another example: \definetweakedfont[squeezed] [xscale=0.90] \bTABLE \bTR \bTD foo \eTD \bTD[style=\squeezed] $x = 1$ \eTD \eTR \bTR \bTD oof \eTD \bTD[style=\squeezed] $x = 2$ \eTD \eTR \eTABLE \bTABLE[style=squeezed] \bTR \bTD $x = 1$ \eTD \bTD $x

Re: [NTG-context] Table disappears in floatcombination

2020-12-26 Thread Christoph Reller
appears > >align=flushright] > > \starttext > > \startplacecombination[title=Combination] > >\startfloatcombination > > \startplacetable%[title=Table] %<- uncomment and table appears > >\bTABLE \bTR \bTD Cell \eTD \eTR \eTABLE > &

Re: [NTG-context] Table disappears in floatcombination

2020-12-26 Thread Hans Hagen
ble%[title=Table] %<- uncomment and table appears       \bTABLE \bTR \bTD Cell \eTD \eTR \eTABLE     \stopplacetable   \stopfloatcombination \stopplacecombination \stoptext In the latest LMTX version of ConTeXt, the table is not shown. (In MKIV it is present.) Either commenting

[NTG-context] Table disappears in floatcombination

2020-12-25 Thread Christoph Reller
ppears \bTABLE \bTR \bTD Cell \eTD \eTR \eTABLE \stopplacetable \stopfloatcombination \stopplacecombination \stoptext In the latest LMTX version of ConTeXt, the table is not shown. (In MKIV it is present.) Either commenting line 3 or activating the table title in line 8 makes the table appear.

Re: [NTG-context] How can I make "natural table" be exactly as wide as the textwidth?

2020-12-08 Thread T. Kurt Bond
=white] \setupTABLE[row][odd][backgroundcolor=back-3] \setupTABLE[row][1][topframe=on,bottomframe=on,framecolor= black,rulethickness=0.75pt] \setupTABLE[row][4][bottomframe=on,framecolor=black,rulethickness=0.75pt] \bTABLE[width=broad] \bTR\bTD {\bf Damage >\\Soak by:}\ \eTD\bTD {\bf Stun\\Le

Re: [NTG-context] How can I make "natural table" be exactly as wide as the textwidth?

2020-12-06 Thread Aditya Mahajan
On Sun, 6 Dec 2020, T. Kurt Bond wrote: > On Sun, Dec 6, 2020 at 2:20 AM Aditya Mahajan wrote: > > > On Sun, 6 Dec 2020, T. Kurt Bond wrote: > > > > > Setting maxwidth and textwidth on the \bTABLE doesn't seem to do > > anything. > > > > Use:

Re: [NTG-context] How can I make "natural table" be exactly as wide as the textwidth?

2020-12-06 Thread T. Kurt Bond
to get them right. Thanks for the help! On Sun, Dec 6, 2020 at 2:20 AM Aditya Mahajan wrote: > On Sun, 6 Dec 2020, T. Kurt Bond wrote: > > > Setting maxwidth and textwidth on the \bTABLE doesn't seem to do > anything. > > Use: > > \bTABLE[width=br

Re: [NTG-context] How can I make "natural table" be exactly as wide as the textwidth?

2020-12-05 Thread Aditya Mahajan
On Sun, 6 Dec 2020, T. Kurt Bond wrote: > Setting maxwidth and textwidth on the \bTABLE doesn't seem to do anything. Use: \bTABLE[width=broad] \eTABLE Aditya ___ If your question is of interest to others as w

Re: [NTG-context] Can you make a \setupTABLE only apply to one table?

2020-12-05 Thread Aditya Mahajan
On Sat, 5 Dec 2020, T. Kurt Bond wrote: > If I understand correctly, \setupTABLE applies to each table after the > \setupTABLE, correct? If so, can you make it only apply to one table? If you really need it for one table: \bTABLE \setupTABLE[...][...] \setupTABLE[...][...] \bTR ..

[NTG-context] How can I make "natural table" be exactly as wide as the textwidth?

2020-12-05 Thread T. Kurt Bond
Setting maxwidth and textwidth on the \bTABLE doesn't seem to do anything. -- T. Kurt Bond, tkurtb...@gmail.com, https://tkurtbond.github.io ___ If your question is of interest to others as well, please add an entry

Re: [NTG-context] Can you make a \setupTABLE only apply to one table?

2020-12-05 Thread T. Kurt Bond
Thanks for the help! On Sat, Dec 5, 2020 at 10:21 PM Jairo A. del Rio wrote: > Hi, > You could enclose your table and setup using \bgroup and \egroup > > \bgroup > \setupTABLE ... > \bTABLE ... \eTABLE > \egroup > > \begingroup ... \endgroup also works, although I ha

Re: [NTG-context] Can you make a \setupTABLE only apply to one table?

2020-12-05 Thread Jairo A. del Rio
Hi, You could enclose your table and setup using \bgroup and \egroup \bgroup \setupTABLE ... \bTABLE ... \eTABLE \egroup \begingroup ... \endgroup also works, although I have to admit I'm not aware of the differences between both. Regards, Jairo :) El sáb., 5 de dic. de 2020 10:01 p. m., T

Re: [NTG-context] mathmatrix and internal lines

2020-11-26 Thread Otared Kavian
: >>> >>> >>> \documentclass{article} >>> \begin{document} >>> $M =\left( \begin{array}{c|c} >>> A & B \\ >>> \hline >>> C & D \\ >>> \end{array} \right)$ >>> \end{document}

Re: [NTG-context] mathmatrix and internal lines

2020-11-26 Thread Jean-Philippe Rey
e with LaTeX >> (cf pdf output) : >> >> >> \documentclass{article} >> \begin{document} >> $M =\left( \begin{array}{c|c} >> A & B \\ >> \hline >> C & D \\ >> \end{array} \right)$ >> \end{document} >&

Re: [NTG-context] mathmatrix and internal lines

2020-11-26 Thread Otared Kavian
gt; I didn't find out how to use mathmatrix to achieve this. My best result to > date is > > > \starttext > $M = \left( \bTABLE[frame=off] > \bTR > \bTD[rightframe=on, bottomframe=on] $A$ \eTD > \bTD[bottomframe=on] $B$ \eTD &

Re: [NTG-context] mathmatrix and internal lines

2020-11-26 Thread Otared Kavian
\\ > \hline > C & D \\ > \end{array} \right)$ > \end{document} > > > I didn't find out how to use mathmatrix to achieve this. My best result to > date is > > > \starttext > $M = \left( \bTABLE[frame=off] &

  1   2   3   4   5   6   7   8   9   10   >